package mediator;

public class MediatorPattern {

    public static void main(String[] args) {
        Colleague colleagueA = new ConcreteColleagueA();
        Colleague colleagueB = new ConcreteColleagueB();

        Mediator mediator = new ConcreteMediator();
        mediator.register(colleagueA);
        mediator.register(colleagueB);

        colleagueA.send();
        colleagueB.send();
    }
}
